package cn.cboard.dao.sql;

import java.sql.ResultSet;
import java.sql.SQLException;

import cn.cboard.database.RowMapper;
import cn.cboard.model.UserGroup;

public class UserGroupMapper implements RowMapper {

	public Object mapRow(ResultSet rs) throws SQLException {
		UserGroup group = new UserGroup();
		group.setUserGroupId(rs.getLong("userGroupId"));
		group.setTitle(rs.getString("title"));
		group.setGroupName(rs.getString("groupName"));
		
		return group;
	}

}
